/*
 * Lab05E.cpp
 * Description: Simple program that uses dynamic memory allocation to exhaust the heap.
 *
 *  Created on: Feb 27, 2014
 *      Author: Anthony Varghese
 */
#include <iostream>
using std::cout;
using std::endl;
using std::flush;

int main(){
	const int SIZE = 1000;
	typedef int* IntPointer;

	IntPointer ip;

	do {
		ip = new int[ SIZE ];
		cout << "Memory allocated " << endl << flush;
	} while (ip != nullptr);

}



